<?php
/*
 * Created on 18 juin 2009
 * Created by Ludovic Reenaers
 * lreenaers@hotmail.com
 */
class CaptchaGenerator extends Generator{
	
	function setUp(){
		$labels = array('{reloadimg}','{codeinfo}','{code}');
		$values = array($this->translator->reloadimg,$this->translator->codeinfo,$this->translator->code);
		$template = file_get_contents($_SESSION['config']->pathtosite."/html/templates/captcha");
		$this->content .=str_replace($labels,$values,$template);
	}
	function dump(){
		$this->setUp();
		return $this->content;
	}
}
?>
